package com.zshan.clinic.database.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 医生挂号费设置表
 */
public class ClinicDoctorFee implements Serializable {
    /** 医生ID */
    private Long doctorId;

    /** 初诊费用;分 */
    private Integer firstVisitFee;

    /** 复诊费用 */
    private Integer followUpFee;

    /** 急诊费用 */
    private Integer emergencyFee;

    /** 预约费用 */
    private Integer appointmentFee;

    /** 看诊时间（分钟） */
    private Integer visitTime;

    /** 医生助理 */
    private Long assistantId;

    /** 是否停诊 */
    private String isStopped;

    /** 诊所ID */
    private Long clinicId;

    /** 是否启用 */
    private String isEnabled;

    /** 删除标识 */
    private String isDelete;

    /** 创建人ID */
    private Long createUserId;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    private Date createTime;

    /** 更新人ID */
    private Long updateUserId;

    /** 更新人 */
    private String updateBy;

    /** 更新时间 */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Integer getFirstVisitFee() {
        return firstVisitFee;
    }

    public void setFirstVisitFee(Integer firstVisitFee) {
        this.firstVisitFee = firstVisitFee;
    }

    public Integer getFollowUpFee() {
        return followUpFee;
    }

    public void setFollowUpFee(Integer followUpFee) {
        this.followUpFee = followUpFee;
    }

    public Integer getEmergencyFee() {
        return emergencyFee;
    }

    public void setEmergencyFee(Integer emergencyFee) {
        this.emergencyFee = emergencyFee;
    }

    public Integer getAppointmentFee() {
        return appointmentFee;
    }

    public void setAppointmentFee(Integer appointmentFee) {
        this.appointmentFee = appointmentFee;
    }

    public Integer getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Integer visitTime) {
        this.visitTime = visitTime;
    }

    public Long getAssistantId() {
        return assistantId;
    }

    public void setAssistantId(Long assistantId) {
        this.assistantId = assistantId;
    }

    public String getIsStopped() {
        return isStopped;
    }

    public void setIsStopped(String isStopped) {
        this.isStopped = isStopped == null ? null : isStopped.trim();
    }

    public Long getClinicId() {
        return clinicId;
    }

    public void setClinicId(Long clinicId) {
        this.clinicId = clinicId;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled == null ? null : isEnabled.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClinicDoctorFee other = (ClinicDoctorFee) that;
        return (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getFirstVisitFee() == null ? other.getFirstVisitFee() == null : this.getFirstVisitFee().equals(other.getFirstVisitFee()))
            && (this.getFollowUpFee() == null ? other.getFollowUpFee() == null : this.getFollowUpFee().equals(other.getFollowUpFee()))
            && (this.getEmergencyFee() == null ? other.getEmergencyFee() == null : this.getEmergencyFee().equals(other.getEmergencyFee()))
            && (this.getAppointmentFee() == null ? other.getAppointmentFee() == null : this.getAppointmentFee().equals(other.getAppointmentFee()))
            && (this.getVisitTime() == null ? other.getVisitTime() == null : this.getVisitTime().equals(other.getVisitTime()))
            && (this.getAssistantId() == null ? other.getAssistantId() == null : this.getAssistantId().equals(other.getAssistantId()))
            && (this.getIsStopped() == null ? other.getIsStopped() == null : this.getIsStopped().equals(other.getIsStopped()))
            && (this.getClinicId() == null ? other.getClinicId() == null : this.getClinicId().equals(other.getClinicId()))
            && (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getFirstVisitFee() == null) ? 0 : getFirstVisitFee().hashCode());
        result = prime * result + ((getFollowUpFee() == null) ? 0 : getFollowUpFee().hashCode());
        result = prime * result + ((getEmergencyFee() == null) ? 0 : getEmergencyFee().hashCode());
        result = prime * result + ((getAppointmentFee() == null) ? 0 : getAppointmentFee().hashCode());
        result = prime * result + ((getVisitTime() == null) ? 0 : getVisitTime().hashCode());
        result = prime * result + ((getAssistantId() == null) ? 0 : getAssistantId().hashCode());
        result = prime * result + ((getIsStopped() == null) ? 0 : getIsStopped().hashCode());
        result = prime * result + ((getClinicId() == null) ? 0 : getClinicId().hashCode());
        result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", doctorId=").append(doctorId);
        sb.append(", firstVisitFee=").append(firstVisitFee);
        sb.append(", followUpFee=").append(followUpFee);
        sb.append(", emergencyFee=").append(emergencyFee);
        sb.append(", appointmentFee=").append(appointmentFee);
        sb.append(", visitTime=").append(visitTime);
        sb.append(", assistantId=").append(assistantId);
        sb.append(", isStopped=").append(isStopped);
        sb.append(", clinicId=").append(clinicId);
        sb.append(", isEnabled=").append(isEnabled);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}